package com.xh.bussiness.shop.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.xh.core.model.SuperEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 订单明细
 * </p>
 *
 * @author daiwei
 * @since 2019-02-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("shop_order_item")
public class OrderItem extends SuperEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 所属主订单ID
     */
    private String orderId;

    /**
     * 商品ID
     */
    private String productId;

    /**
     * 购买数量
     */
    private Integer count;

    /**
     * 商品原价
     */
    private Double salePrice;

    /**
     * 成交价
     */
    private Double finalPrice;

    /**
     * 状态
     */
    private Integer status;


}
